package com.gxuwz.stats.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.IdType;

@TableName("rsp_creative_achievement")
public class CreativeAchievement {

    @TableId(value = "creative_id", type = IdType.AUTO)
    private int creativeId;
    @TableField("user_id")
    private int userId;

    @TableField(exist = false)  // 非数据库字段（用于接收前端用户名）
    private String username;

    @TableField("creative_achievement_name")
    private String creativeAchievementName;

    @TableField("creative_category")
    private String creativeCategory;

    @TableField("creative_level")
    private String creativeLevel;

    @TableField("creative_score")
    private Double creativeScore;

    @TableField("creative_notes")
    private String creativeNotes;


    // Getter & Setter


    public int getCreativeId() {
        return creativeId;
    }

    public void setCreativeId(int creativeId) {
        this.creativeId = creativeId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUsername() {return username;}

    public void setUsername(String username) {
        this.username = username;
    }

    public String getCreativeAchievementName() {
        return creativeAchievementName;
    }

    public void setCreativeAchievementName(String creativeAchievementName) {
        this.creativeAchievementName = creativeAchievementName;
    }

    public String getCreativeCategory() {
        return creativeCategory;
    }

    public void setCreativeCategory(String creativeCategory) {
        this.creativeCategory = creativeCategory;
    }

    public String getCreativeLevel() {
        return creativeLevel;
    }

    public void setCreativeLevel(String creativeLevel) {
        this.creativeLevel = creativeLevel;
    }

    public Double getCreativeScore() {
        return creativeScore;
    }

    public void setCreativeScore(Double creativeScore) {
        this.creativeScore = creativeScore;
    }

    public String getCreativeNotes() {
        return creativeNotes;
    }

    public void setCreativeNotes(String creativeNotes) {
        this.creativeNotes = creativeNotes;
    }

    // toString()
    @Override
    public String toString() {
        return "CreativeAchievement{" +
                "creativeId=" + creativeId +
                ", userId=" + userId +
                ", username='" + username + '\'' +
                ", creativeAchievementName='" + creativeAchievementName + '\'' +
                ", creativeCategory='" + creativeCategory + '\'' +
                ", creativeLevel='" + creativeLevel + '\'' +
                ", creativeScore=" + creativeScore +
                ", creativeNotes='" + creativeNotes + '\'' +
                '}';
    }
}
